package com.qs.pojo.enums;

import com.alibaba.fastjson.annotation.JSONType;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.databind.deser.std.EnumDeserializer;
import com.fasterxml.jackson.databind.ser.std.EnumSerializer;
import lombok.Getter;

/**
 * ClassName: Status
 * Package: com.qs.enums
 * Description:
 *
 * @Author: @weixueshi
 * @Create: 2023/11/11 - 21:23
 * @Version: v1.0
 */

/**
 * 对应管理员的状态0：待支付；1：已支付
 */
@JSONType(serializer = EnumSerializer.class, deserializer = EnumDeserializer.class, serializeEnumAsJavaBean = true)
@Getter
public enum PayStatus {
    WAIT_PAY(0,"待付款"),
    HAVE_PAY(1,"已付款" );

    @EnumValue
    private Integer code ;
    private String comment ;

    PayStatus(Integer code, String comment ){
        this.code=code;
        this.comment=comment;
    }
}
